package com.quxing.amazon.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.quxing.amazon.model.Category;

import java.util.List;

/**
 * <p>
 * 亚马逊商品分类 服务类
 * </p>
 *
 * @author zhb
 * @since 2021-05-09
 */
public interface CategoryService extends IService<Category> {

    List<Tree<Integer>> trees();

    List<Integer> getAllChildrenIdsByCategoryId(Integer categoryId, List<Integer> result);

    List<Category> listByParentId(Integer parentId);
}
